import http from './http'

// 修改密码
const changeUserPass = (info) => {
    return http.post(
        '/api/UserApi/changeUserPass',
        {...info},
        {headers:{act:'setCoursecollect'}}
    )
}
// 修改昵称
const getBannerByCateName = (name) => {
    return http.post(
        '/api/userApi/changeUserNickName',
        {new_name:name},
        {headers:{act:'changeUserNickName'}}
    )
}
export {
    changeUserPass,
    getBannerByCateName
}